<script type="text/javascript">
	function calAfterIn(value) {
		printLog($('#currentBalance').numberbox('getValue'));
// 		printLog($('#inBalance').numberbox('getValue'));
		var afterInBalance = Number(value)+Number($('#currentBalance').numberbox('getValue'));
// 		$('#afterInBalance').val(afterInBalance.toFixed(6));
		$('#afterInBalance').numberbox('setValue', afterInBalance.toFixed(2));
	}
</script>
<table cellpadding="5">
	<input name="accountId" type="hidden" value="${(transAccountItem.id)!}" />
	<input name="websiteId" type="hidden" value="${(transAccountItem.websiteId)!}" />
	<tr>
		<td class="tbLabel">所属网点:</td>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
		<td>
			<input class="easyui-validatebox textbox" readonly="readonly"  value="${(transAccountItem.websiteName)!}"/>
		</td>
		<td class="tbLabel">当前余额:</td>
		<td>
			<input id="currentBalance" name="currentBalance" readonly="readonly"  class="easyui-numberbox" precision="2" data-options="required: true,width:157" value="${(transAccountItem.accountBalance)!'0'}"/>
		</td>
	</tr>
	<tr>
		<td>入账日期:</td>
		<td>
			<input name="tradeDate" style="width:160px;" data-options="required:true" class="easyui-datetimebox"  />
		</td>
		<td>入账金额:</td>
		<td>
			<input id="inBalance" name="tradeBalance" style="width:158px;" class="easyui-numberbox"  precision="2" data-options="required: true,onChange:function(newValue,oldValue) {calAfterIn(newValue);}" />
		</td>
	</tr>
	<tr>
		<td>经办人:</td>
		<td>
			<input name="operator"  class="easyui-validatebox textbox" readonly="readonly" data-options="required: true" value="${(user.name)!}"/>
		</td>
		<td>入账后金额:</td>
		<td>
			<input id="afterInBalance" name="afterOperateBalance" style="width:158px;"  class="easyui-numberbox" readonly="readonly" precision="2"  />
		</td>
	</tr>
	<tr>
		<td>备注:</td>
		<td colspan="3">
			<textarea style="height: 90px;width: 418px;" rows="6"  name="remark" class="easyui-validatebox textbox"></textarea>
		</td>
	</tr>
</table>
